
#ifndef __Method_h__
#define __Method_h__

#include <QtCore>

#include "AccessModifier.h"
#include "Parameter.h"
#include "XMLSerializable.h"
#include "Clazz.h"

class Method: public XMLSerializable
{
        private:
            AccessModifier accessModifier;
            Clazz returnType;
            QString name;
            QVector<Parameter*> parameters;

        public:
            Method(QString);
            AccessModifier getAccessModifier();
            void setAccessModifier(AccessModifier);

            Clazz getReturnType();
            void setReturnType(Clazz);

            QString getName();
            void setName(QString);

            QVector<Parameter*> getParameters();
            void setParameters(QVector<Parameter*>);

            QString toXml();
};

#endif
